package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 题目练习对象 question
 * 
 * @author zhn
 * @date 2024-03-22
 */
public class Question extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private Long id;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 类型 */
    @Excel(name = "类型")
    private Long type;

    /** a */
    @Excel(name = "a")
    private String a;

    /** b */
    @Excel(name = "b")
    private String b;

    /** c */
    @Excel(name = "c")
    private String c;

    /** d */
    @Excel(name = "d")
    private String d;

    /** 分数 */
    @Excel(name = "分数")
    private Long score;

    /** 答案 */
    @Excel(name = "答案")
    private String answer;

    /** 出题人 */
    @Excel(name = "出题人")
    private Long userid;

    /** 出题时间 */
    @Excel(name = "出题时间")
    private String time;

    /** 解析 */
    @Excel(name = "解析")
    private String detail;

    /** 课程 */
    @Excel(name = "课程")
    private Long courseid;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setType(Long type) 
    {
        this.type = type;
    }

    public Long getType() 
    {
        return type;
    }
    public void setA(String a) 
    {
        this.a = a;
    }

    public String getA() 
    {
        return a;
    }
    public void setB(String b) 
    {
        this.b = b;
    }

    public String getB() 
    {
        return b;
    }
    public void setC(String c) 
    {
        this.c = c;
    }

    public String getC() 
    {
        return c;
    }
    public void setD(String d) 
    {
        this.d = d;
    }

    public String getD() 
    {
        return d;
    }
    public void setScore(Long score) 
    {
        this.score = score;
    }

    public Long getScore() 
    {
        return score;
    }
    public void setAnswer(String answer) 
    {
        this.answer = answer;
    }

    public String getAnswer() 
    {
        return answer;
    }
    public void setUserid(Long userid) 
    {
        this.userid = userid;
    }

    public Long getUserid() 
    {
        return userid;
    }
    public void setTime(String time) 
    {
        this.time = time;
    }

    public String getTime() 
    {
        return time;
    }
    public void setDetail(String detail) 
    {
        this.detail = detail;
    }

    public String getDetail() 
    {
        return detail;
    }
    public void setCourseid(Long courseid) 
    {
        this.courseid = courseid;
    }

    public Long getCourseid() 
    {
        return courseid;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("type", getType())
            .append("a", getA())
            .append("b", getB())
            .append("c", getC())
            .append("d", getD())
            .append("score", getScore())
            .append("answer", getAnswer())
            .append("userid", getUserid())
            .append("time", getTime())
            .append("detail", getDetail())
            .append("courseid", getCourseid())
            .toString();
    }
}
